package com.meowcook.service;

import com.meowcook.pojo.dto.MessageDTO;
import com.meowcook.pojo.vo.MessageVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: 28792
 * Date: 2025-11-15
 * Time: 12:05
 */
public interface IMessageService {

    @Transactional
    MessageVO createMessage(MessageDTO messageDTO);

    Integer getUncheckNum(Long userId);

    ArrayList<Long> getMessageIdList(Long id,Long sessionId);

    ArrayList<MessageVO> getMessageList(ArrayList<Long> messageIdList);

    void updateUncheckNum(Long id, Long sessionId, Integer i);

    void deleteMessage(Long UserId, Long sessionId, ArrayList<Long> messageIdList);
}
